﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AST.Model
{
    /// <summary>
    /// 实体类AdminEntity 
    /// </summary> 
    [Serializable]
    public class AdminEntity : Object
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 登录名，用户Email
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string UserPassword { get; set; }

        /// <summary>
        /// 上一次登录的IP
        /// </summary>
        public string LastLogonIP { get; set; }

        /// <summary>
        /// 上一次登录的时间
        /// </summary>
        public DateTime LastLogonTime { get; set; }

        public string strLastLogonTime
        {
            get
            {
                if (LastLogonTime == DateTime.MinValue)
                {
                    return "";
                }
                else
                {
                    return LastLogonTime.ToString("yyyy年MM月dd日 HH:mm:ss");
                }
            }
        }

        /// <summary>
        /// 是否系统用户（不受权限限制）
        /// </summary>
        public int IsSystemUser { get; set; }

        public int ActiveFlg { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        public string strCreateTime
        {
            get
            {
                return CreateTime.ToString("yyyy年MM月dd日 HH:mm:ss");
            }
        }
    }
}